package com.fishery.memo.client;

import com.fishery.entity.Result;
import com.fishery.memo.entity.client.Message;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author run
 * @since 2021/1/31 11:10
 */
@Component
@FeignClient(name = "fishery-message-service")
public interface MessageClient {

    // 服务调用接口
    @PutMapping(value = "/message/sendRemind/")
    public Result sendRemind(@RequestBody Message message);
}
